import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

import personage from '../public/personage'
import experience from '../public/experience'

const routes = [
 { path: '/' , component: personage },
 { path: '/top_header/' , component: experience},
 { path: '/personage/' , component: personage },
]

//使用路由规则
export const router = new VueRouter({
 routes
})
// 4. 创建和挂载根实例。
// 记得要通过 router 配置参数注入路由，http://192.168.0.104:9191/